package cn.yr.blog.controller.app;

import cn.yr.blog.service.CountService;
import cn.yr.common.core.domain.vo.CountVo;
import cn.yr.common.exception.ret.Ret;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "app统计")
@RestController
@RequestMapping("/app/count")
public class AppCountController {


    @Resource
    private CountService countService;

    @GetMapping("/getCount")
    public Ret<CountVo> getCount(){
        CountVo countVo = countService.getCount();
        return Ret.success(countVo);
    }
}
